/**
 * 网络请求的代码
 * 
 * @author bian
 * @createDate 2016.10.1
 */

require("es6-promise").polyfill()
var superagentPromisePlugin = require("superagent-promise-plugin")
var request = superagentPromisePlugin.patch(require("superagent"))
var charset = require("superagent-charset")
charset(request)

module.exports = request